package com.ldcc.report_system;


import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;


/**
 * @author wwj[yeshengkele@outlook.com]
 * @description 自定义Application类
 */
public class ReportApplication extends Application {


    @SuppressLint("StaticFieldLeak")
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        ReportApplication.context = getApplicationContext();
    }

    public static Context getContext() {
        return ReportApplication.context;
    }
}
